//
//  Storage.m
//  LTChat
//
//  Created by apple on 4/22/14.
//  Copyright (c) 2014 fantasy. All rights reserved.
//

#import "Storage.h"
#import "hoopdb.h"
#import "ChatMessage.h"

@implementation Storage

+(id)shareStance
{
    static Storage *storage = nil;
    if (storage == nil) {
        storage = [[Storage alloc] init];
    }
    return storage;
}

-(id)init
{
    if (self) {
        //
    }
    return self;
}

-(BOOL)saveMessageToDB:(ChatMessage *)msg
{
//    if ([hoopdb open:@"openfire.db"]) {
//        [hoopdb registerDocumentModel:[Message class]];
//        Message *mess = [[Message alloc] init];
//        mess.from = [];
//    }
    
    return YES;
}
@end
